package com.tskj.mh.badminton.service;

import com.tskj.mh.badminton.dao.redis.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * @author LeonSu
 */
@Service
public class LoginService {

    @Autowired
    private RedisUtil redisUtil;


    public String getAdUserName(String token) {
        Object value = redisUtil.get(token);
        if (value != null) {
            return value.toString();
        }
        return "";
    }

}
